<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="http://schemas.microsoft.com/dynamics/2008/01/documents/CashDisc" xmlns:st="http://schemas.microsoft.com/dynamics/2008/01/sharedtypes" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/dynamics/2008/01/documents/CashDisc" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="http://app002:8101/DynamicsAx/Services/LedgerServices?xsd=xsd10" namespace="http://schemas.microsoft.com/dynamics/2008/01/sharedtypes" />
  <xs:element name="CashDisc" type="tns:AxdCashDisc" />
  <xs:complexType name="AxdCashDisc">
    <xs:sequence>
      <xs:element minOccurs="0" name="ClearNilFieldsOnUpdate" nillable="true" type="st:AxdEnum_boolean" />
      <xs:element minOccurs="0" name="DocPurpose" nillable="true" type="st:AxdEnum_XMLDocPurpose" />
      <xs:element minOccurs="0" name="SenderId" nillable="true" type="st:AxdExtType_DataAreaId" />
      <xs:element minOccurs="0" maxOccurs="unbounded" name="CashDisc" type="tns:AxdEntity_CashDisc" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="AxdEntity_CashDisc">
    <xs:sequence>
      <xs:element minOccurs="0" name="_DocumentHash" nillable="true" type="xs:string" />
      <xs:element minOccurs="1" name="CashDiscCode" type="st:AxdExtType_CashDiscCode" />
      <xs:element minOccurs="0" name="CashDiscCodeNext" nillable="true" type="st:AxdExtType_CashDiscCode" />
      <xs:element minOccurs="0" name="Description" nillable="true" type="st:AxdExtType_Description" />
      <xs:element minOccurs="0" name="DiscMethod" nillable="true" type="st:AxdEnum_NetCurrent" />
      <xs:element minOccurs="0" name="DiscountOffsetMethod_PSN" nillable="true" type="st:AxdEnum_DiscountOffsetMethod" />
      <xs:element minOccurs="0" name="NumOfDays" nillable="true" type="st:AxdExtType_PositiveDays" />
      <xs:element minOccurs="0" name="NumOfMonths" nillable="true" type="st:AxdExtType_PositiveMonths" />
      <xs:element minOccurs="1" name="PaidLedgerDimension" type="st:AxdType_DefaultAccount" />
      <xs:element minOccurs="0" name="Percent" nillable="true" type="st:AxdExtType_DiscPct" />
      <xs:element minOccurs="0" name="ReceivedLedgerDimension" nillable="true" type="st:AxdType_DefaultAccount" />
      <xs:element minOccurs="0" name="RecId" nillable="true" type="st:AxdExtType_RecId" />
      <xs:element minOccurs="0" name="RecVersion" nillable="true" type="st:AxdExtType_RecVersion" />
      <xs:element minOccurs="0" maxOccurs="unbounded" name="LanguageTxt" type="tns:AxdEntity_LanguageTxt" />
    </xs:sequence>
    <xs:attribute fixed="entity" name="class" use="required" />
    <xs:attribute name="action" type="st:AxdEnum_AxdEntityAction" />
  </xs:complexType>
  <xs:complexType name="AxdEntity_LanguageTxt">
    <xs:sequence>
      <xs:element minOccurs="1" name="LanguageId" type="st:AxdExtType_LanguageId" />
      <xs:element minOccurs="0" name="RecId" nillable="true" type="st:AxdExtType_RecId" />
      <xs:element minOccurs="0" name="RecVersion" nillable="true" type="st:AxdExtType_RecVersion" />
      <xs:element minOccurs="0" name="Txt" nillable="true" type="st:AxdExtType_LanguageTxtText" />
      <xs:element minOccurs="0" name="TxtRecId" nillable="true" type="st:AxdExtType_LanguageTxtRefRecId" />
      <xs:element minOccurs="0" name="TxtTableId" nillable="true" type="st:AxdExtType_LanguageTxtRefTableId" />
    </xs:sequence>
    <xs:attribute fixed="entity" name="class" use="required" />
    <xs:attribute name="action" type="st:AxdEnum_AxdEntityAction" />
  </xs:complexType>
</xs:schema>